<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript" src="view/question/js/jquery-1.8.3.js"></script>
<base href="<%=basePath%>">
<%-- <jsp:forward page="../../findBsc_categoryList.action"/>  --%>
<script type="text/javascript"  language="javascript">

$(document).ready(function() {
	var flag = $("#flag").attr("value");
	
	switch(flag){
		case 'question':  window.location.href="view/question/viewQuestion.jsp?flag=0";break;
		case 'login':  window.location.href="login.action";break;
		case 'login2':  window.location.href="login2.action";break;
		case 'questiondetail':  window.location.href="view/question/viewQuestionDetail.jsp";break;
		case 'questiondraft':  window.location.href="view/question/editQuestiondraft.jsp";break;
		case 'edit_myquestion':  window.location.href="view/question/editQuestiondraft.jsp?flag=1";break;
		case 'edit_questiondraft':  window.location.href="view/question/editQuestiondraft.jsp?flag=0";break;
		case 'edit_question': window.location.href="view/question/viewQuestionDetail.jsp?flag=0";break;
		case 'del_myquestion':  window.location.href="view/question/viewQuestiondraft.jsp?flag=0";break;
		case 'del_questiondraft':  window.location.href="view/question/viewQuestiondraft.jsp?flag=1";break;
		case 'del_question':  window.location.href="view/question/viewQuestion.jsp?flag=0";break;
		
	}
	
	
	
	
/* 	if(flag=='question'){
		 window.location.href="view/question/viewQuestion.jsp?flag=0";
	}else if(flag=='login'){
		 window.location.href="login.action";
	}else if(flag=='questiondetail'){
		 window.location.href="view/question/viewQuestionDetail.jsp";
	}else if(flag=='questiondraft'){
		 window.location.href="view/question/editQuestiondraft.jsp";
	}else if(flag=='edit_myquestion'){
		 window.location.href="view/question/editQuestiondraft.jsp?flag=1";
	}else if(flag=='edit_questiondraft'){
		 window.location.href="view/question/editQuestiondraft.jsp?flag=0";
	}else if(flag=='edit_question'){
		 window.location.href="view/question/viewQuestionDetail.jsp?flag=0";
	}else if(flag=='del_myquestion'){
		 window.location.href="view/question/viewQuestiondraft.jsp?flag=0";
	}else if(flag=='del_questiondraft'){
		 window.location.href="view/question/viewQuestiondraft.jsp?flag=1";
	}else if(flag=='del_question'){
		 window.location.href="view/question/viewQuestion.jsp?flag=0";
	}
	 */
	
	 
	
});

</script>
<body>
<input type="hidden" value="${param.flag }" id="flag"/>


</body>